package com.itheima.blog.article.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author admin
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_comment")
@ApiModel(value="TComment对象", description="评论表")
public class TComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一uid")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "用户uid")
    private Long userId;

    @ApiModelProperty(value = "回复某条评论的id")
    private Long targetCommentId;

    @ApiModelProperty(value = "回复某个人的id")
    private Integer targetUserId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "博客uid")
    private Long blogId;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "一级评论ID")
    private Long commentId;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;


}
